package com.wn.mapper;

import com.wn.ov.DepartmentUserOv;
import com.wn.ov.FormOv;
import com.wn.pojo.Appointment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Appointment record);

    //动态添加
    int insertSelective(Appointment record);

    Appointment selectByPrimaryKey(Integer id);

    //根据主键动态修改
    int updateByPrimaryKeySelective(Appointment appointment);

    //预约取消
    int updateAppointmentCancel(Appointment appointment);

    //预约成功
    int updateAppointment(Appointment appointment);

    int updateByPrimaryKey(Appointment record);

    List<FormOv> selectByDoctor(Integer doctorId);

    Appointment selectByPId(Integer patientId);

    List<FormOv> superSearch(String superSearchKeyWord, Integer doctorId);

    //预约详情
    List<DepartmentUserOv>  getAppointmentByPatientId(Integer id);


}